package nl.ypmits.utils.stats {
	import flash.net.URLRequest;
	import flash.net.URLRequestMethod;
	import flash.net.navigateToURL;	
	/**
	 * @author Merten
	 */
	public class GoogleLog {
		public static function track(_node : String) : void {
			
			var popupRequest : URLRequest = new URLRequest( "javascript:pageTracker._trackPageview('" + _node + "');" );
			popupRequest.method = URLRequestMethod.POST;

			try {
				navigateToURL( popupRequest, "_self" );
			} catch (e : Error) {
				throw new Error( e.message );
			}
		}
	}
}